package com.woniu.sale.entity;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Pur_RequestReturnDetail
 * @author 
 */
public class PurRequestreturndetail extends PurRequestreturndetailKey implements Serializable {
    private String prodcd;

    private String unitcd;

    private String basicunitcd;

    private String lotno;

    private String purchaseno;

    private Integer rtnqnty;

    private Integer rtnqntybasic;

    private Integer rtnconfirmqnty;

    private Integer rtnconfirmqntybasic;

    private BigDecimal purchaseprice;

    private BigDecimal tax;

    private BigDecimal totalmny;

    private static final long serialVersionUID = 1L;

    public String getProdcd() {
        return prodcd;
    }

    public void setProdcd(String prodcd) {
        this.prodcd = prodcd;
    }

    public String getUnitcd() {
        return unitcd;
    }

    public void setUnitcd(String unitcd) {
        this.unitcd = unitcd;
    }

    public String getBasicunitcd() {
        return basicunitcd;
    }

    public void setBasicunitcd(String basicunitcd) {
        this.basicunitcd = basicunitcd;
    }

    public String getLotno() {
        return lotno;
    }

    public void setLotno(String lotno) {
        this.lotno = lotno;
    }

    public String getPurchaseno() {
        return purchaseno;
    }

    public void setPurchaseno(String purchaseno) {
        this.purchaseno = purchaseno;
    }

    public Integer getRtnqnty() {
        return rtnqnty;
    }

    public void setRtnqnty(Integer rtnqnty) {
        this.rtnqnty = rtnqnty;
    }

    public Integer getRtnqntybasic() {
        return rtnqntybasic;
    }

    public void setRtnqntybasic(Integer rtnqntybasic) {
        this.rtnqntybasic = rtnqntybasic;
    }

    public Integer getRtnconfirmqnty() {
        return rtnconfirmqnty;
    }

    public void setRtnconfirmqnty(Integer rtnconfirmqnty) {
        this.rtnconfirmqnty = rtnconfirmqnty;
    }

    public Integer getRtnconfirmqntybasic() {
        return rtnconfirmqntybasic;
    }

    public void setRtnconfirmqntybasic(Integer rtnconfirmqntybasic) {
        this.rtnconfirmqntybasic = rtnconfirmqntybasic;
    }

    public BigDecimal getPurchaseprice() {
        return purchaseprice;
    }

    public void setPurchaseprice(BigDecimal purchaseprice) {
        this.purchaseprice = purchaseprice;
    }

    public BigDecimal getTax() {
        return tax;
    }

    public void setTax(BigDecimal tax) {
        this.tax = tax;
    }

    public BigDecimal getTotalmny() {
        return totalmny;
    }

    public void setTotalmny(BigDecimal totalmny) {
        this.totalmny = totalmny;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PurRequestreturndetail other = (PurRequestreturndetail) that;
        return (this.getBeforepurchasertnno() == null ? other.getBeforepurchasertnno() == null : this.getBeforepurchasertnno().equals(other.getBeforepurchasertnno()))
            && (this.getBeforepurchasertnlno() == null ? other.getBeforepurchasertnlno() == null : this.getBeforepurchasertnlno().equals(other.getBeforepurchasertnlno()))
            && (this.getProdcd() == null ? other.getProdcd() == null : this.getProdcd().equals(other.getProdcd()))
            && (this.getUnitcd() == null ? other.getUnitcd() == null : this.getUnitcd().equals(other.getUnitcd()))
            && (this.getBasicunitcd() == null ? other.getBasicunitcd() == null : this.getBasicunitcd().equals(other.getBasicunitcd()))
            && (this.getLotno() == null ? other.getLotno() == null : this.getLotno().equals(other.getLotno()))
            && (this.getPurchaseno() == null ? other.getPurchaseno() == null : this.getPurchaseno().equals(other.getPurchaseno()))
            && (this.getRtnqnty() == null ? other.getRtnqnty() == null : this.getRtnqnty().equals(other.getRtnqnty()))
            && (this.getRtnqntybasic() == null ? other.getRtnqntybasic() == null : this.getRtnqntybasic().equals(other.getRtnqntybasic()))
            && (this.getRtnconfirmqnty() == null ? other.getRtnconfirmqnty() == null : this.getRtnconfirmqnty().equals(other.getRtnconfirmqnty()))
            && (this.getRtnconfirmqntybasic() == null ? other.getRtnconfirmqntybasic() == null : this.getRtnconfirmqntybasic().equals(other.getRtnconfirmqntybasic()))
            && (this.getPurchaseprice() == null ? other.getPurchaseprice() == null : this.getPurchaseprice().equals(other.getPurchaseprice()))
            && (this.getTax() == null ? other.getTax() == null : this.getTax().equals(other.getTax()))
            && (this.getTotalmny() == null ? other.getTotalmny() == null : this.getTotalmny().equals(other.getTotalmny()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBeforepurchasertnno() == null) ? 0 : getBeforepurchasertnno().hashCode());
        result = prime * result + ((getBeforepurchasertnlno() == null) ? 0 : getBeforepurchasertnlno().hashCode());
        result = prime * result + ((getProdcd() == null) ? 0 : getProdcd().hashCode());
        result = prime * result + ((getUnitcd() == null) ? 0 : getUnitcd().hashCode());
        result = prime * result + ((getBasicunitcd() == null) ? 0 : getBasicunitcd().hashCode());
        result = prime * result + ((getLotno() == null) ? 0 : getLotno().hashCode());
        result = prime * result + ((getPurchaseno() == null) ? 0 : getPurchaseno().hashCode());
        result = prime * result + ((getRtnqnty() == null) ? 0 : getRtnqnty().hashCode());
        result = prime * result + ((getRtnqntybasic() == null) ? 0 : getRtnqntybasic().hashCode());
        result = prime * result + ((getRtnconfirmqnty() == null) ? 0 : getRtnconfirmqnty().hashCode());
        result = prime * result + ((getRtnconfirmqntybasic() == null) ? 0 : getRtnconfirmqntybasic().hashCode());
        result = prime * result + ((getPurchaseprice() == null) ? 0 : getPurchaseprice().hashCode());
        result = prime * result + ((getTax() == null) ? 0 : getTax().hashCode());
        result = prime * result + ((getTotalmny() == null) ? 0 : getTotalmny().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", prodcd=").append(prodcd);
        sb.append(", unitcd=").append(unitcd);
        sb.append(", basicunitcd=").append(basicunitcd);
        sb.append(", lotno=").append(lotno);
        sb.append(", purchaseno=").append(purchaseno);
        sb.append(", rtnqnty=").append(rtnqnty);
        sb.append(", rtnqntybasic=").append(rtnqntybasic);
        sb.append(", rtnconfirmqnty=").append(rtnconfirmqnty);
        sb.append(", rtnconfirmqntybasic=").append(rtnconfirmqntybasic);
        sb.append(", purchaseprice=").append(purchaseprice);
        sb.append(", tax=").append(tax);
        sb.append(", totalmny=").append(totalmny);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}